<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            width: 300px;
            height:300px;
            background-color:red;
        }
        .child {
            width:200px;
            height:200px;
            background-color: #fff;
        }
        .spring {
            width: 100px;
            height: 100px;
            background-color: green;
        }
    </style>
</head>
<body>
    <div class="container" value="1">
        <div class="child" value="2">
            <div class="spring" value="2" >后代</div>
        </div>
    </div>
    <script>
        // function click3(e) {
        //     console.log('e',e);
            
        // }
        document.querySelector('.spring').addEventListener('click',(e) => {
            console.log('e.target:',e.target);
            console.log('1');
        },true)
        document.querySelector('.child').addEventListener('click',(e) => {
            // console.log('e:',e);
            console.log('2');
        },true)
        document.querySelector('.container').addEventListener('click',(e) => {
            // console.log('e:',e);
            console.log('3');
        },true)
    </script>
</body>
</html>